Skip to content

Conversation

@christolis
Copy link
Member

@christolis christolis commented Jan 4, 2026

Closes #1113.

Showcase

Screen.Recording.2026-01-04.at.02.35.21.mov

Configuration changes

Property Description Type
dynamicVoiceChannelPatterns List of voice channel patterns to manage dynamically. List[String]

Co-authored-by: Suraj Kumar <[email protected]>
Signed-off-by: Chris Sdogkos <[email protected]>
@christolis christolis requested a review from a team as a code owner January 4, 2026 00:31
@christolis christolis marked this pull request as draft January 4, 2026 00:31
Using 'Logger#info' is too spammy in the console, use 'Logger#trace'
instead.

Signed-off-by: Chris Sdogkos <[email protected]>
@christolis christolis added config-changes if your PR contains any changes related to config file java Pull requests that update java code enhancement New feature or request labels Jan 4, 2026
@christolis christolis marked this pull request as ready for review January 4, 2026 11:09
Copy link
Contributor

@tj-wazei tj-wazei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy with this and have tested.

Comment on lines +94 to +99
channel.delete()
.queue(_ -> logger.trace("Deleted dynamically created voice channel: {} ",
channel.getName()),
error -> logger.error("Failed to delete dynamically created voice channel: {} ",
channel.getName(), error));
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would kinda prefer if this workflow will post a warning in the voice channel chat with a specific timer for deletion (30sec) or whatever, then checking again for memberCount == 0 and then actually deleting or otherwise stopping the workflow

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about this when reviewing and decided to skip past a timer. There is a message sent when the channel is created and there's really no need to keep the channel longer. It can be recreated right away anyway.

Having said this, I am now thinking about moderation...

Temp voice chat -> users posting nonsense -> evidence deleted ...?

Perhaps instead of deleting the channel, we can move it to a private/mod-only voice-chat-archive channel so only we can still check chats. Followed by a daily clean up task.

What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds great, we need to keep track of what people post in these ephemeral channels. Perhaps instead of deleting, send a log of all the messages sent as one embed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll hit the character limit very quickly with an embed. It's best to just hide the channel so only moderators can see this and clean up after some time period.

@tj-wazei tj-wazei self-requested a review January 5, 2026 15:50
@Zachdehooge
Copy link
Contributor

Would love to carry this feature forward, got permission from @christolis

@Zachdehooge
Copy link
Contributor

Just some things to note:

"Support/Studying Room" with no numbers produces the desired result of TJ creating a temp channel for the user and deleting it when everyone leaves the channel.

"Support/Studying Room" with any number after it (1,2,3,4) does not produce a temp channel, and the channel itself it deleted after everyone leaves the channel.

This brings me to the question of when this gets implemented, will we have only one channel, "Support/Studying Room", with no numbers? If so, this does not need to be addressed. If there will still be 4 different studying channels as it is currently, this is something that will need to be handled. Just wanted to confirm before tackling that, since it's not really an issue per se if the channel is just "Support/Studying Room" with no numbers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config-changes if your PR contains any changes related to config file enhancement New feature or request java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dynamically create and delete voice channels based on activity

4 participants